﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Autodesk.Revit.UI;
using YJKRoomInspection.Model;

namespace YJKRoomInspection.ShowDataForm.ModellessFrame
{
	public class ViewLayerManger
	{
		public void DoViewLayer(ExternalCommandData inputCommand, IWin32Window inputHandle, UIDocument inputUidoc, List<AdapteRoomResulePacker> inputValues)
		{
			this.m_useForm = new FrontRoomListForm_ModellessNoneSwitch(inputCommand, inputHandle, inputUidoc, inputValues);
			this.m_useManger = new FrontRoomListFormModellessManger(this.m_useForm);
			this.DoLoop();
		}

		private void DoLoop()
		{
			this.m_useManger.DoLoopWork();
		}

		private FrontRoomListForm_ModellessNoneSwitch m_useForm;

		private FrontRoomListFormModellessManger m_useManger;
	}
}
